package pro.shushi.pamirs.hr.core.session;

import org.springframework.stereotype.Component;
import pro.shushi.pamirs.business.api.model.PamirsEmployee;
import pro.shushi.pamirs.meta.api.core.session.SessionClearApi;
import pro.shushi.pamirs.user.api.model.PamirsUser;

@Component
public class HrSimpleSessionHolder implements HrSimpleSessionApi, SessionClearApi {

    @Override
    public PamirsEmployee getEmployee() {
        return HrSimpleSessionCache.getEmployee();
    }

    @Override
    public PamirsUser getUser() {
        return HrSimpleSessionCache.getUser();
    }

    @Override
    public void clear() {
        HrSimpleSessionCache.clear();
    }

}
